home *** CD-ROM | disk | FTP | other *** search
/ PC Direct 1998 August / PC Direct August 1998.iso / S / powerj / Product / hpp.z / dtjcombo11.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-10  |  1.4 KB  |  57 lines

  1. // Design Time Java ComboBox implementation. (HPP)
  2.  
  3. #ifndef _DTJCOMBO11_HPP
  4. #define _DTJCOMBO11_HPP
  5.  
  6. #include "dtjcomp11.hpp"
  7.  
  8. class METAEXPORTCLASSDEF DTJComboBox11 : public DTJComponent11
  9. {
  10.     public:
  11.         DTJComboBox11( const MetaObject * pMetaObj );
  12.         virtual ~DTJComboBox11();
  13.  
  14.     virtual WBool        GetHasInitialText() const;
  15.     virtual WStringList&    GetListItems();
  16.  
  17.     // Save and Load DTInfo
  18.  
  19.     virtual WBool        HasDTInfo();
  20.     virtual WBool        SaveDTInfo( SaveSource & );
  21.     virtual WBool        LoadDTInfo( SaveBlock *, WBool );
  22.  
  23.     virtual WStyle        GetDefaultStyle() const;
  24.  
  25.     // ExtendedStyle: the ExtendedStyle property of the window nature 
  26.     virtual WStyle        GetDefaultExtendedStyle() const;
  27.  
  28.         virtual void GenerateCode( MMCodeGeneration mmCodeGen,
  29.                    ostream& src,
  30.                    MMCodeGenerationParms& pGenParms );
  31.  
  32.     virtual void GenClassName( WString & className ) const;
  33.  
  34.     protected:
  35.     WBool            GetDropDown() const;
  36.  
  37.     private:
  38.         WStringList        _listItems;
  39. //    WBool            _hasInitialText;
  40. };
  41.  
  42. class ImpComboBox11 : public WComboBox
  43. {
  44.     public:
  45.         virtual WBool CloneWindow( WStyle newStyle, WStyle newExStyle,
  46.                                    void * data=NULL );
  47.     DTJComboBox11 * _dt;
  48. };
  49.  
  50.  
  51. // needed for mdreader
  52. typedef DTJComboBox11 DTjava__dot__awt__dot__Choice__dot__11;
  53. typedef ImpComboBox11 java__dot__awt__dot__Choice__dot__11;
  54.  
  55.  
  56. #endif // _DTJCOMBO11_HPP
  57.